Socket
Socket
Sign inDemoInstall

@advanced-rest-client/arc-events

Package Overview
Dependencies
Maintainers
4
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@advanced-rest-client/arc-events

A library adding navigation events definitions to Advanced REST Client


Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

Advanced REST Client events

A library adding events and type definitions to Advanced REST Client. Use this library when building a component that triggers the navigation via DOM events.

Published on NPM

tests

Usage

Installation

npm install --save @advanced-rest-client/events

ARC request navigate event

Dispatched to navigate to a request screen and open a request

import { ARCNavigationEvent } from '@advanced-rest-client/events';

ARCNavigationEvent.navigateRequest(document.body, 'request id', 'saved');

REST API navigate event

Dispatched to navigate to a REST API either as the API Console or to project metadata screen.

import { ARCNavigationEvent } from '@advanced-rest-client/events';

ARCNavigationEvent.navigateRestApi(document.body, 'api id', '1.0.0', 'documentation or detail');

Project navigate event

Dispatched to navigate to an ARC project screen.

import { ARCNavigationEvent } from '@advanced-rest-client/events';

ARCNavigationEvent.navigateProject(document.body, 'project id', 'detail');

Other navigation events

Other events are dispatched via ARCNavigationEvent.navigate() helper function as a general purpose navigation event. It contains the base route and optional route options.

import { ARCNavigationEvent } from '@advanced-rest-client/events';

ARCNavigationEvent.navigate(document.body, 'request', {
  // route params.
});

Development

git clone https://github.com/advanced-rest-client/events
cd events
npm install

Running the tests

npm test

FAQs

Package last updated on 27 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc